<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]

    <script type="text/javascript">
        var grid;


        function f_verify(){
            var selecteds = grid.getSelecteds();
            if (selecteds.length != 1) {
                LG.tip('请选择一行记录!');
                return;
            }

            if(selecteds[0].status==-1){
                LG.tip('不能审核已经失败的认证!');
                return ;
            }
            top.f_addTab(null, '审核', base+'/admin/approve/'+selecteds[0].id+'.aspx');

        }
        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [
                    {display: 'id', name: 'id', align: 'center', width: 200,frozen:true},
                    {display: '用户id', name: 'user_id', align: 'center', width: 200 },
                    {display: '用户名', name: 'u_user_name', align: 'center', width: 100 },
                    {display: '名字', name: 'real_name', align: 'center', width: 120 },
                    {display: '身份证', name: 'id_number', align: 'center', width: 100 },
                    {display: '出生日', name: 'birthdate', align: 'center', width: 100 },
                    {display: '正面', name: 'card_pic1', align: 'center', width: 100,
                        render: function(row){
                            return  "<a href="+row.card_pic1+">查看</a>"
                        }
                    },
                    {display: '反面', name: 'card_pic2', align: 'center', width: 100,
                        render: function(row){
                            return  "<a href="+row.card_pic2+">查看</a>"
                        }
                    },
                    {display: '反面', name: 'status', align: 'center', width: 100,
                        render: function(row){
                            if(row.status==0){
                                return "审核中";
                            }else if(row.status==1){
                                return "审核通过";
                            }else{
                                return "不通过";
                            }
                        }
                    }


                ],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });


            $(".l-toolbar").ligerToolBar({ items: [


                { text: '审核', click: f_verify }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });

    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">
            <form id="exportForm" method="post" action="${path}/admin/member/exportCustomerList.aspx">
               <span>
					用户id：<input type="text"   name="userId" />
				</span>
                <span>
					用户名： <input type="text" name="userName" value="${userName }"/>
				</span>
 <span>
					真实姓名：<input type="text" name="userRealName" value="${userRealName }"/>
				</span>
                 <span>
					  审核状态：  [@u.select list={'':"全部","0":"申请中","1":"审核通过","-1":"未通过"}
                 name="authStatus" value="${(authStatus)!''}" /]
				</span>

                时间
                <input type="text" id="begin_date" name="begin_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                -
                <input type="text" id="endDate" name="end_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                <input type="button" class="button" value="搜索" id="search"/>
                <a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>


            </form>
        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>